<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改报警统计信息')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-total-edit" th:object="${alarmTotal}">
            <input name="deviceId" th:field="*{deviceId}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">设备序号：</label>
                <div class="col-sm-8">
                    <input name="deviceId" th:field="*{deviceId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">设备编号：</label>
                <div class="col-sm-8">
                    <input name="deviceNum" th:field="*{deviceNum}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">紧急停机：</label>
                <div class="col-sm-8">
                    <input name="alarm1" th:field="*{alarm1}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">二次过流：</label>
                <div class="col-sm-8">
                    <input name="alarm2" th:field="*{alarm2}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">温度异常：</label>
                <div class="col-sm-8">
                    <input name="alarm3" th:field="*{alarm3}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">输入过压：</label>
                <div class="col-sm-8">
                    <input name="alarm4" th:field="*{alarm4}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">输入欠压：</label>
                <div class="col-sm-8">
                    <input name="alarm5" th:field="*{alarm5}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">引弧异常：</label>
                <div class="col-sm-8">
                    <input name="alarm6" th:field="*{alarm6}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">焊枪开关异常：</label>
                <div class="col-sm-8">
                    <input name="alarm7" th:field="*{alarm7}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">电流检出异常：</label>
                <div class="col-sm-8">
                    <input name="alarm8" th:field="*{alarm8}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">外部中断：</label>
                <div class="col-sm-8">
                    <input name="alarm9" th:field="*{alarm9}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">内存异常：</label>
                <div class="col-sm-8">
                    <input name="alarm10" th:field="*{alarm10}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">系统异常：</label>
                <div class="col-sm-8">
                    <input name="alarm11" th:field="*{alarm11}" class="form-control" type="text">
                </div>
            </div>
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">自定义异常12：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="alarm12" th:field="*{alarm12}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">自定义异常13：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="alarm13" th:field="*{alarm13}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">自定义异常14：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="alarm14" th:field="*{alarm14}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">自定义异常15：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="alarm15" th:field="*{alarm15}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">自定义异常16：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="alarm16" th:field="*{alarm16}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">自定义异常17：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="alarm17" th:field="*{alarm17}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">自定义异常18：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="alarm18" th:field="*{alarm18}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">自定义异常19：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="alarm19" th:field="*{alarm19}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">自定义异常20：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="alarm20" th:field="*{alarm20}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
            <div class="form-group">    
                <label class="col-sm-3 control-label">是否启用：</label>
                <div class="col-sm-8">
                    <input name="isValid" th:field="*{isValid}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "alarm/total";
        $("#form-total-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-total-edit').serialize());
            }
        }
    </script>
</body>
</html>